package com.chennan.spring.demo.annotation.conditional;

import com.chennan.spring.demo.annotation.lazy.MyLazyConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author chennan
 * @create 2021-11
 */
public class MyTest {
    public static void main(String[] args) {
        ApplicationContext app = new AnnotationConfigApplicationContext(MyCditionalConfig.class);
        String[] beanDefinitionNames = app.getBeanDefinitionNames();
        for (String beanDefinitionName : beanDefinitionNames) {
            System.out.println(beanDefinitionName);
        }
    }
}
